#include <stdio.h>
#include<fcntl.h>
#include<unistd.h>
#include<stdlib.h>
#include"menu.h"

int menu()
{
	int ch;
	system("clear");
	printf("\t\t\t\t=========================\n");
	printf("\t\t\t\t========Mymplayer========\n");
	printf("\t\t\t\t1.Music List\n");
	printf("\t\t\t\t2.Play\n");
	printf("\t\t\t\t0.Quit\n");
	printf("\t\t\t\t=========================\n");
	printf("\t\t\t\tSelect:");
	scanf("%d", &ch);
	while(ch < 0 || ch > 2)
	{
		printf("Error option try again:\n");
		scanf("%d", &ch);
	}
	return ch;
}